package ro.cityprojects.adminloc.dao;

import org.springframework.stereotype.Repository;
import ro.cityprojects.adminloc.entities.Association;

import java.util.Set;

/**
 * AssociationDAOImpl class
 *
 * @author bogdan.solga
 *
 * Date: 14.06.2013, time: 17:19
 */
@Repository
public class AssociationDAOImpl extends BaseDAO<Integer, Association> implements AssociationDAO {

    @Override
    public void save(Association entity) {
        saveEntity(entity);
    }

    @Override
    public Association get(Integer id) {
        return get(Association.class, id);
    }

    @Override
    public Set<Association> getAll(String filterName, String filterValue) {
        return getAll(filterName, filterValue, Association.class);
    }

    @Override
    public void update(Association entity) {
        updateEntity(entity);
    }

    @Override
    public void delete(Integer primaryKey) {
        deleteEntity(Association.class, primaryKey);
    }
}
